const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    host: '0.0.0.0',
    open: true,
    client:{
      overlay:false
    },
    proxy: {
     '/admin-api': {
        target: `http://127.0.0.1:9092`,  //部署到阿里云上的接口url
        changeOrigin: true,
        pathRewrite: {
         '^/admin-api/': ''
        }
      },
      '/app-api': {
        target: `http://127.0.0.1:9090`,  //部署到阿里云上的接口url
        changeOrigin: true,
        pathRewrite: {
         '^/app-api/': ''
        }
      },
    }
  },
})
